<?php
class Merchant_Service_TakeStock
{
	public static $tsStatus = array(0=>'',1=>'盘点中',2=>'确认中',3=>'完成');
	
	public static function getByCond($cond=array(),$type='*',$pageSize=0,$page=1,$order=array())
	{ 
		$obj=new Merchant_Model_TakeStock();
		$rows= $obj->getByCond( $cond,$type,$pageSize,$page,$order);	
		return $rows;
	}
	
	public static function getByfield($field,$value)
	{ 
		$obj=new Merchant_Model_TakeStock();
		$rows=$obj->getByfield($field,$value);
		if(!empty($rows)){
			$rows=$rows->toArray();
		}
		return $rows;
	}
		
	
	


	
}